package com.ctgu.service;

import com.ctgu.dao.DetailMapper;
import com.ctgu.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DetailServiceImpl implements DetailService{

    @Autowired
    private DetailMapper detailMapper;

    @Override
    public Product findById(int id){
        return detailMapper.findById(id);
    }

    @Override
    public Integer addProduct(int product_id,int user_id, int product_num){return detailMapper.addProduct(product_id,user_id,product_num);}
}
